package java67_adv8;

public class Thread4 {

	public static void main(String[] args) throws Exception {
		Thread.currentThread().setName("周扒皮");
		Worker w1 = new Worker("王二狗");
		w1.start();
		while (true) {
			Thread.sleep(1400);
			System.out.println("周扒皮休息好了,喊工人干活");
			w1.interrupt();
			System.out.println("周扒皮继续睡...");
		}
	}

}
